package com.example.demo.converter;

import com.example.demo.ent.Test;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class StringConverter implements Converter<String, Object> {

    @Override
    public Object convert(String s) {

        System.out.println( s);
        Test test = new Test();
        test.setId(s);
        return test;
    }
}
